import { Component ,OnInit} from '@angular/core';


declare var form: any;

@Component({
  templateUrl: './service.resource.component.html'
})
export class ServiceResouceComponent  implements OnInit{
  fs: any = null;
  orgDic: any = null;
  typeDic: any = null;


  constructor() {
    // 注册表单
    this.fs = new form.FormTreeService('gisresourcecontent', {
      orderObject: { order: 0 },
      keyField: 'id',
      randomFields: ['id'],
      pageSize: 1000,
      defaultObject: { leaf: false }
    });

    this.fs.loadData(true);

    // 初始化字典
    this.orgDic = new form.DictionaryService('p_gisresourcecontent');
    this.orgDic.load('0');
     
  }

  ngOnInit(): void {
  }

 
}


